import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class rtedf {
    import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

    public class Demo94 {
        public static void main(String[] args) throws IOException {
            try(InputStream inputStream = new FileInputStream("./text.txt")){
                byte[] buffer = new byte[1024];
                int len =0;
                while(true ){
                    len = inputStream.read(buffer);
                    if(len==-1){
                        break;
                    }
                    for (int i = 0; i <len ; i+=3) {
                        String s = new String(buffer,i,3);
                        System.out.println(s );
                    }
                }
            }
        }
    }

}
